package com.huawei.appmarket.framework.widget;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import o.dky.c;
import o.dky.d;

@SuppressLint({"NewApi"})
public class LinearLayoutStrokeView extends LinearLayout {
    private int ˊ;

    private void ˋ(android.content.Context r6, android.util.AttributeSet r7, int r8) {
        /* JADX: method processing error */
/*
Error: java.util.NoSuchElementException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1444)
	at java.util.HashMap$KeyIterator.next(HashMap.java:1466)
	at jadx.core.dex.visitors.blocksmaker.BlockFinallyExtract.applyRemove(BlockFinallyExtract.java:535)
	at jadx.core.dex.visitors.blocksmaker.BlockFinallyExtract.extractFinally(BlockFinallyExtract.java:175)
	at jadx.core.dex.visitors.blocksmaker.BlockFinallyExtract.processExceptionHandler(BlockFinallyExtract.java:79)
	at jadx.core.dex.visitors.blocksmaker.BlockFinallyExtract.visit(BlockFinallyExtract.java:51)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
	at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
	at jadx.core.ProcessClass.process(ProcessClass.java:37)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
*/
        /*
        r5 = this;
        r0 = r5.getContext();
        r0 = r0.getResources();
        r1 = o.dky.c.ॱ;
        r0 = r0.getDimensionPixelOffset(r1);
        r5.ˊ = r0;
        if (r7 == 0) goto L_0x0030;
    L_0x0012:
        r0 = o.dky$o.ʽʽ;
        r1 = 0;
        r1 = r6.obtainStyledAttributes(r7, r0, r8, r1);
        r0 = o.dky$o.ʾˊ;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r0 = r1.hasValue(r0);	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        if (r0 == 0) goto L_0x0031;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
    L_0x0021:
        r0 = o.dky$o.ʾˊ;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r2 = r5.ˊ;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r0 = r1.getDimensionPixelSize(r0, r2);	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
    L_0x0029:
        r5.ˊ = r0;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        if (r1 == 0) goto L_0x0030;
    L_0x002d:
        r1.recycle();
    L_0x0030:
        return;
    L_0x0031:
        r0 = r5.ˊ;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        goto L_0x0029;
    L_0x0034:
        r0 = move-exception;
        r2 = "LinearLayoutStrokeView";	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r3 = new java.lang.StringBuilder;	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r3.<init>();	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r4 = "CropRightRoundImageView init(AttributeSet attrs) ";	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r3 = r3.append(r4);	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r0 = r0.getMessage();	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r0 = r3.append(r0);	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        r0 = r0.toString();	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        o.dna.ˊ(r2, r0);	 Catch:{ RuntimeException -> 0x0034, all -> 0x0057 }
        if (r1 == 0) goto L_0x0030;
    L_0x0053:
        r1.recycle();
        goto L_0x0030;
    L_0x0057:
        r0 = move-exception;
        if (r1 == 0) goto L_0x005d;
    L_0x005a:
        r1.recycle();
    L_0x005d:
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.framework.widget.LinearLayoutStrokeView.ˋ(android.content.Context, android.util.AttributeSet, int):void");
    }

    public LinearLayoutStrokeView(Context context) {
        this(context, null);
    }

    public LinearLayoutStrokeView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public LinearLayoutStrokeView(Context context, AttributeSet attributeSet, int i) {
        this(context, attributeSet, i, 0);
    }

    public LinearLayoutStrokeView(Context context, AttributeSet attributeSet, int i, int i2) {
        super(context, attributeSet, i, i2);
        ˋ(context, attributeSet, i);
    }

    protected void dispatchDraw(Canvas canvas) {
        super.dispatchDraw(canvas);
        Paint paint = new Paint();
        paint.setColor(getContext().getResources().getColor(d.ˎ));
        paint.setAntiAlias(true);
        paint.setStyle(Style.STROKE);
        float dimension = getContext().getResources().getDimension(c.ˏ);
        paint.setStrokeWidth(dimension);
        canvas.drawRoundRect(new RectF(dimension / 2.0f, dimension / 2.0f, ((float) getWidth()) - (dimension / 2.0f), ((float) getHeight()) - (dimension / 2.0f)), (float) this.ˊ, (float) this.ˊ, paint);
    }
}
